home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3052 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  965 b 

  1. Path: boy.nmd.msu.ru!not-for-mail
  2. From: krotoff@such.srcc.msu.su (Alexander Krotoff)
  3. Newsgroups: comp.lang.c++
  4. Subject: casting virtual base classpointer to derived
  5. Date: 21 Jan 1996 17:34:23 +0300
  6. Organization: Research Computer Center, Moscow State University
  7. Sender: krotoff@boy.nmd.msu.ru
  8. Message-ID: <4dtitf$2mv@boy.nmd.msu.ru>
  9. References: <DLE98M.nEI@novice.uwaterloo.ca>
  10. Reply-To: krotoff@such.srcc.msu.su (Alexander Krotoff)
  11. NNTP-Posting-Host: boy.nmd.msu.ru
  12. X-InCommentTo: mkalisia@novice.uwaterloo.ca (Maciej Kalisiak)
  13.  
  14. mkalisia@novice.uwaterloo.ca (Maciej Kalisiak) wrote: 
  15. > Any ideas of how to keep such a list of derived type objets using
  16. > Base*'s, or how to get around this ???
  17. > I am using Watcom v10.0
  18.  
  19. You may use `dynamic_cast'. It is relatively new C++ feature.
  20. It is described in the publicaly available Draft Standard
  21. (if you cannot find in in the more "human-radable" sources)
  22. I do not know is it supported in Watcom 10.
  23. --
  24. Alexander 
  25.  
  26.  
  27.  
  28.